package com.llh.designpatterns.singleton.hungry;

/**
 * 饿汉式单例测试
 */
class SingletonDemo01 {

    public static void main(String[] args) {
        Singleton instance = Singleton.getInstance();
        Singleton instance2 = Singleton.getInstance();
        System.out.println(instance);
        System.out.println(instance2);
    }

}

